fix: allow event loop to process during wait queue processing#2537
fix: allow event loop to process during wait queue processing#2537
Conversation
Running `processWaitQueue` on the next tick allows the event loop to process while the connection pool is processing large numbers of wait queue members. NODE-2803
emadum
left a comment
There was a problem hiding this comment.
LGTM, but it looks like this made a test start failing in CI (unless that's unrelated)
0c92d66 to
71038b7
Compare
`endSession` must wait for all the machinery behind the scenes to check out a connection and write a message before considering its job finished.
71038b7 to
e340b8f
Compare
|
Unfortunately this is a breaking change for anyone that uses Sinon's |
|
@vkarpov15 hmm, the original implementation used There's a possibility when using |
Running
processWaitQueueon the next tick allows the event loop to process while the connection pool is processing large numbers of wait queue members.NODE-2803